package com.paperyy.module.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "user")
public class User {
    @TableId(value = "u_id", type = IdType.AUTO)
    private Integer id;
    @TableField("name")
    private String name;
    @TableField("u_time")
    @JsonFormat(pattern = "yyyy-HH-dd HH:mm:ss")
    private Date time;
    @TableField("vip")
    private Integer v = 0;
    @TableField("money")
    private BigDecimal money;
    @TableField("number")
    private Integer number;
}
